home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5224 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.2 KB  |  44 lines

  1. Path: news2.ios.com!usenet
  2. From: vlad@gramercy.ios.com (Vlastimil Adamovsky)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Why C++ sucks++
  5. Date: Sat, 03 Feb 1996 02:58:00 GMT
  6. Organization: Internet Online Services
  7. Message-ID: <4euie0$d0u@news2.ios.com>
  8. References: <1996Jan29.223357.1@aspen> <4eobl2$1sq@news2.ios.com> <4eojgc$d10@masala.cc.uh.edu>
  9. NNTP-Posting-Host: ppp-66.ts-7.hck.idt.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Sensarn <txs53132@bayou.uh.edu> wrote:
  13.  
  14. >>Try this:
  15. >>
  16. >>>*** SEASONED PROFESSIONAL ***
  17. >>#include <iostream.h>
  18. >>main() { cout << "Hello world\n";}
  19. >>
  20. >>*******************************************
  21. >>*    Vlastimil Adamovsky                  *
  22. >>* Smalltalk, C++ and Envelop development  *
  23. >>*******************************************
  24. >>
  25.  
  26. >Yeah, or this:
  27.  
  28. >#include <stdio.h>
  29.  
  30. >void main(void) {printf("\nHello world\n");}
  31.  
  32. I simply  wanted to show advantages of Object oriented programming.
  33. Indeed, when you use printf you have to know what kind of data you
  34. want to print. In C++, thanks to overloading, you don't need to. 
  35.  
  36.  
  37.  
  38.  
  39. *******************************************
  40. *    Vlastimil Adamovsky                  *
  41. * Smalltalk, C++ and Envelop development  *
  42. *******************************************
  43.  
  44.